home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 98 / Skunkware 98.iso / src / mail / pine3.96.tar.gz / pine3.96.tar / pine3.96 / pine / makefile.asv < prev    next >
Makefile  |  1996-06-05  |  5KB  |  154 lines

  1. # $Id: makefile.asv,v 1.5 1996/06/05 20:56:18 hubert Exp $
  2. #    copied from makefile.sco & modified    trr
  3. #
  4. #            T H E    P I N E    M A I L   S Y S T E M
  5. #
  6. #   Laurence Lundblade and Mike Seibel
  7. #   Networks and Distributed Computing
  8. #   Computing and Communications
  9. #   University of Washington
  10. #   Administration Building, AG-44
  11. #   Seattle, Washington, 98195, USA
  12. #   Internet: lgl@CAC.Washington.EDU
  13. #             mikes@CAC.Washington.EDU
  14. #
  15. #   Please address all bugs and comments to "pine-bugs@cac.washington.edu"
  16. #
  17. #
  18. #   Pine and Pico are registered trademarks of the University of Washington.
  19. #   No commercial use of these trademarks may be made without prior written
  20. #   permission of the University of Washington.
  21. #
  22. #   Pine, Pico, and Pilot software and its included text are Copyright
  23. #   1989-1996 by the University of Washington.
  24. #
  25. #   The full text of our legal notices is contained in the file called
  26. #   CPYRIGHT, included with this distribution.
  27. #
  28. #
  29. #   Pine is in part based on The Elm Mail System:
  30. #    ***********************************************************************
  31. #    *  The Elm Mail System  -  Revision: 2.13                             *
  32. #    *                                                                     *
  33. #    *             Copyright (c) 1986, 1987 Dave Taylor               *
  34. #    *             Copyright (c) 1988, 1989 USENET Community Trust    *
  35. #    ***********************************************************************
  36. #
  37. #
  38.  
  39. #
  40. #     Make file for the Pine mail system for Altos System V
  41. #
  42. # Port courtesy of Tim Rice <tim@trr.metro.net>    trr
  43. #
  44. #
  45. #
  46. #   Most commonly fiddled flags for compiler.
  47. #   Uncomment the setttings desired here
  48. #
  49. # trr
  50. # cc chokes on addrbook.c with a hash table overflow, but if someone
  51. # wants to split it up it should work
  52. # Port "gas" is Altos using gcc.
  53. RM=          rm -f
  54. LN=          ln -s
  55. MAKE=        make
  56. OPTIMIZE=    # -O
  57. PROFILE=     # -pg
  58. DEBUG=       -g -DDEBUG
  59. SHELL=       /bin/sh
  60. IMAPDIR=     ../c-client
  61. PICODIR=     ../pico
  62.  
  63. STDLIBES=    -ltermlib -lsocket -lrpc -lgen -lxenix
  64. LOCLIBES=    $(PICODIR)/libpico.a $(IMAPDIR)/c-client.a
  65. LIBES=       $(EXTRALIBES) $(LOCLIBES) $(STDLIBES)
  66.  
  67. STDCFLAGS=   -Dconst= -DASV -DSYSTYPE=\"ASV\"
  68. CFLAGS=      $(OPTIMIZE) $(PROFILE) $(DEBUG) $(EXTRACFLAGS) $(STDCFLAGS)
  69.  
  70. obj=    addrbook.o adrbklib.o args.o context.o filter.o \
  71.     folder.o help.o helptext.o imap.o init.o mailcap.o mailcmd.o \
  72.     mailindx.o mailpart.o mailview.o newmail.o other.o pine.o \
  73.     reply.o screen.o send.o signals.o status.o strings.o ttyin.o \
  74.     ttyout.o os.o
  75.  
  76. cfiles= addrbook.c adrbklib.c args.c context.c filter.c \
  77.     folder.c help.c helptext.c imap.c init.c mailcap.c mailcmd.c \
  78.     mailindx.c mailpart.c mailview.c newmail.c other.c pine.c \
  79.     reply.c screen.c send.c signals.c status.c strings.c ttyin.c \
  80.     ttyout.c os.c
  81.  
  82. pine:  $(obj) $(LOCLIBES)
  83.     echo "char datestamp[]="\"`date`\"";" > date.c
  84.     echo "char hoststamp[]="\"`hostname`\"";" >> date.c
  85.     $(CC) $(LDFLAGS) $(CFLAGS) -o pine $(obj) date.c $(LIBES)
  86.  
  87. # this is not part of pine
  88. pine-use:    pine-use.c
  89.     $(CC) -o pine-use pine-use.c
  90.  
  91. clean:
  92.     $(RM) *.o os.h os.c helptext.c helptext.h
  93.     cd osdep; make clean; cd ..
  94.  
  95.  
  96. HEADERS= headers.h pine.h os.h helptext.h context.h \
  97.       ../c-client/mail.h ../c-client/osdep.h
  98.  
  99. addrbook.o:    addrbook.c  $(HEADERS) adrbklib.h $(PICODIR)/pico.h
  100. adrbklib.o:     adrbklib.c  $(HEADERS) adrbklib.h
  101. args.o:        args.c      $(HEADERS)
  102. context.o:    context.c   $(HEADERS) ../c-client/misc.h
  103. filter.o:    filter.c    $(HEADERS) ../pico/pico.h
  104. folder.o:    folder.c    $(HEADERS)
  105. help.o:        help.c      $(HEADERS)
  106. helptext.o:    helptext.c
  107. imap.o:            imap.c      $(HEADERS)
  108. init.o:        init.c      $(HEADERS)
  109. mailcmd.o:    mailcmd.c   $(HEADERS) $(PICODIR)/pico.h
  110. mailcap.o:      mailcap.c   $(HEADERS)
  111. mailindx.o:    mailindx.c  $(HEADERS)
  112. mailpart.o:    mailpart.c  $(HEADERS)
  113. mailview.o:    mailview.c  $(HEADERS)
  114. newmail.o:    newmail.c   $(HEADERS)
  115. os.o:        os.c         $(HEADERS)
  116. other.o:    other.c     $(HEADERS) $(PICODIR)/pico.h
  117. pine.o:        pine.c      $(HEADERS)
  118. reply.o:    reply.c     $(HEADERS)
  119. screen.o:    screen.c    $(HEADERS)
  120. send.o:            send.c      $(HEADERS) ../c-client/smtp.h ../pico/pico.h
  121. signals.o:    signals.c   $(HEADERS)
  122. status.o:    status.c    $(HEADERS)
  123. strings.o:    strings.c   $(HEADERS)
  124. ttyin.o:    ttyin.c     $(HEADERS)
  125. ttyout.o:    ttyout.c    $(HEADERS)
  126.  
  127. os.h:    osdep/os-asv.h
  128.     $(RM) os.h
  129.     $(LN) osdep/os-asv.h os.h
  130.  
  131. helptext.c:    pine.hlp
  132.         ./cmplhelp.sh  < pine.hlp > helptext.c
  133.  
  134. helptext.h:    pine.hlp
  135.         ./cmplhlp2.sh  < pine.hlp > helptext.h
  136.  
  137. os.c:    osdep/os-asv.c
  138.     $(RM) os.c
  139.     $(LN) osdep/os-asv.c os.c
  140.  
  141. # os.c is derived from several files in the osdep sub-directory.
  142. # The dependencies here will be different for each port.
  143. osdep/os-asv.c:    osdep/bld_path osdep/canacces osdep/canonicl \
  144.         osdep/chnge_pw osdep/coredump osdep/creatdir \
  145.         osdep/diskquot.non osdep/domnames osdep/err_desc \
  146.         osdep/expnfldr osdep/fgetpos osdep/filesize osdep/fltrname \
  147.         osdep/fnexpand osdep/header osdep/hostname \
  148.         osdep/jobcntrl osdep/lstcmpnt osdep/mimedisp osdep/pipe \
  149.         osdep/print osdep/pw_stuff osdep/readfile osdep/debuging \
  150.         osdep/rename osdep/srandom.dum osdep/tempfile osdep/tempnam \
  151.         osdep/sendmail osdep/execview osdep/writ_dir \
  152.         osdep/os-asv.ic
  153.     cd osdep; $(MAKE) includer os-asv.c; cd ..
  154.